package com.yuelan.apartment.service;

import com.yuelan.apartment.domain.ApaRoomInfo;
import com.yuelan.apartment.domain.vo.FloorVo;

import java.util.List;

/**
 * @description:
 * @Author: ZhaoYi
 * @date: 24-5-23 9:20
 */
public interface RoomService {

    /**
     * 新增房间
     */
    int addRoom(ApaRoomInfo apaRoomInfo);

    /**
     * 删除房间
     */
    int deleteRoom(Long id);

    /**
     * 批量删除房间
     */
    int deleteRoomIds(Long[] ids);

    /**
     * 更新房间状态
     */
    void updateRoomState(Long[] ids);

    /**
     * 更新房间信息
     */
    int update(ApaRoomInfo apaRoomInfo);

    /**
     * 查询房间信息
     */
    ApaRoomInfo load(Long id);

    /**
     * 查询当前房源下所有房租
     */
    List<FloorVo> roomList(Long id);

    /**
     * 查询房租信息列表
     */
    List<ApaRoomInfo> selectApaRoomInfoList(ApaRoomInfo apaRoomInfo);

}
